<template>
   <div class="progress" :style="{height:h+'px'}">
     <div 
       class="progress-bar progress-bar-info progress-bar-striped" 
       :class="{'active': percentage < 100}" 
       :style="{width:percentage+'%'}">
<!--       <div class="progress-value">{{ percentage }}%</div>-->
     </div>
   </div>
</template>
<script>
export default {
  props: {
    percentage: {
      type: Number,
      default: 0
    },
    h: {
      type: Number,
      default: 20
    },

  }
}
</script>
<style scoped>

.progress {
  margin-bottom: 5px !important;
  background: #f1ecec;
  padding: 3px;
  overflow: visible;
  border-radius: 20px;
}

.progress .progress-bar {
  border-radius: 20px;
  position: relative;
  animation: animate-positive 2s;
}

.progress .progress-value {
  display: block;
  padding: 3px 7px;
  font-size: 13px;
  color: #fff;
  border-radius: 4px;
  background: #191919;
  border: 1px solid #000;
  position: absolute;
  top: -40px;
  right: -10px;
}

.progress .progress-value:after {
  content: "";
  border-top: 10px solid #191919;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  position: absolute;
  bottom: -6px;
  left: 26%;
}

.progress-bar.active {
  /* animation: reverse progress-bar-stripes 0.40s linear infinite, animate-positive 2s; */
}

@-webkit-keyframes animate-positive {
  0% {
    width: 0;
  }
}

@keyframes animate-positive {
  0% {
    width: 0;
  }
}
.progress-bar-info {
  background-color: #2DBFFD!important;
}
</style>

